// ActionScript file
package com.customComboBox
{
	
/* import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.KeyboardEvent;
import flash.net.SharedObject;
import flash.ui.Keyboard;

import mx.collections.ListCollectionView;

import mx.core.UIComponent; */
	
	import flash.events.Event;
	
	import mx.controls.ComboBox;
	
		
	public class customComboBox extends ComboBox 
	{
		public var isClose:Boolean = false;
		
		public function customComboBox() {
			super();
		}
		 
	  	override public function close(event:Event = null):void
	    {	 	    	
	    	if(event && event.type == "mouseDownOutside")
	    		isClose = true;
	    	
	    	if(!isClose) 
	    	{	
	    		return;	
	    	}
	    	
	    	isClose = false;
	    	
	    	super.close(event);
	    }    	
	}
}